import sys

result = {}

result["min"] = 999999999
result["max"] = -1
result["count"] = 0

for data in sys.stdin:
    data = data.strip()
    key = data.split("\t")[0]
    value = int(data.split("\t")[1])

    if value > result["max"]:
        result["max"] = value

    if value < result["min"]:
        result["min"] = value
    
    result["count"] = result["count"] + 1

for key, value in result.items():
	sys.stdout.write("%s\t%s\n" % (key, str(value)))